package com.dragon.modules.yuegou.query.act;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.dragon.modules.yuegou.entity.act.GiftBagMemberProRefEntity;
import com.dragon.modules.yuegou.enums.act.GiftBagMemberProRefSkuType;
import com.dragon.modules.yuegou.mybatis.Condition;
import com.dragon.modules.yuegou.mybatis.Query;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonInclude.Include;
import com.fasterxml.jackson.annotation.JsonUnwrapped;

/**
 * 发放明细记录表 动态查询条件
 * 
 * @author pbuilder generated
 * @date 2020-08-06 17:31:14
 * @version 2.0
 */
@JsonInclude(Include.NON_NULL)
public class GiftBagMemberProRefQuery extends GiftBagMemberProRefEntity implements Query<GiftBagMemberProRefEntity> {

    /** 查询条件 */
	@JsonUnwrapped(prefix = "id")
	private Condition<String> idCondition;

    /** 查询条件 */
	@JsonUnwrapped(prefix = "giftBagId")
	private Condition<String> giftBagIdCondition;

    /** 查询条件 */
	@JsonUnwrapped(prefix = "giftMemberId")
	private Condition<String> giftMemberIdCondition;

    /** 查询条件 */
	@JsonUnwrapped(prefix = "orderNo")
	private Condition<String> orderNoCondition;

    /** 查询条件 */
	@JsonUnwrapped(prefix = "couponId")
	private Condition<String> couponIdCondition;

    /** [枚举]商品类型：0-优质好货-SKU、1-停车券-PARKCOUPON、2-现金券-CASHCOUPON查询条件 */
	@JsonUnwrapped(prefix = "skuType")
	private Condition<GiftBagMemberProRefSkuType> skuTypeCondition;

	/**
	 * 构造一个查询条件对象
	 */
	public GiftBagMemberProRefQuery() {
		super();
	}

	/**
	 * 依据实体对象构造一个查询条件对象
	 * 
	 * @param entity 实体对象
	 */
	public GiftBagMemberProRefQuery(GiftBagMemberProRefEntity entity) {
		super(entity);
	}

	/**
	 * 依据其它查询条件对象的信息构造一个查询条件对象
	 * 
	 * @param other 查询条件对象
	 */
	public GiftBagMemberProRefQuery(GiftBagMemberProRefQuery other) {
		super(other);
		if(other.idCondition != null) {
			this.idCondition = other.idCondition.copy();
		}
		if(other.giftBagIdCondition != null) {
			this.giftBagIdCondition = other.giftBagIdCondition.copy();
		}
		if(other.giftMemberIdCondition != null) {
			this.giftMemberIdCondition = other.giftMemberIdCondition.copy();
		}
		if(other.orderNoCondition != null) {
			this.orderNoCondition = other.orderNoCondition.copy();
		}
		if(other.couponIdCondition != null) {
			this.couponIdCondition = other.couponIdCondition.copy();
		}
		if(other.skuTypeCondition != null) {
			this.skuTypeCondition = other.skuTypeCondition.copy();
		}
	}

	@Override
	public QueryWrapper<GiftBagMemberProRefEntity> toQueryWrapper() {
		QueryWrapper<GiftBagMemberProRefEntity> wrapper = new QueryWrapper<>(this);
		if (idCondition != null) {
			idCondition.toWrapper(wrapper, COL_ID);
		}
		if (giftBagIdCondition != null) {
			giftBagIdCondition.toWrapper(wrapper, COL_GIFT_BAG_ID);
		}
		if (giftMemberIdCondition != null) {
			giftMemberIdCondition.toWrapper(wrapper, COL_GIFT_MEMBER_ID);
		}
		if (orderNoCondition != null) {
			orderNoCondition.toWrapper(wrapper, COL_ORDER_NO);
		}
		if (couponIdCondition != null) {
			couponIdCondition.toWrapper(wrapper, COL_COUPON_ID);
		}
		if (skuTypeCondition != null) {
			skuTypeCondition.toWrapper(wrapper, COL_SKU_TYPE);
		}
		return wrapper;
	}

	/**
	 * 构造并返回查询条件
	 * 
	 * @return idCondition 查询条件
	 */
	public Condition<String> id() {
		this.idCondition = new Condition<>();
		return this.idCondition;
	}
	
	/**
	 * 获取查询条件
	 * 
	 * @return idCondition 查询条件
	 */
	public Condition<String> getIdCondition() {
		return idCondition;
	}

	/**
	 * 设置查询条件
	 * 
	 * @param idCondition 查询条件
	 */
	public void setIdCondition(Condition<String> idCondition) {
		this.idCondition = idCondition;
	}

	/**
	 * 构造并返回查询条件
	 * 
	 * @return giftBagIdCondition 查询条件
	 */
	public Condition<String> giftBagId() {
		this.giftBagIdCondition = new Condition<>();
		return this.giftBagIdCondition;
	}
	
	/**
	 * 获取查询条件
	 * 
	 * @return giftBagIdCondition 查询条件
	 */
	public Condition<String> getGiftBagIdCondition() {
		return giftBagIdCondition;
	}

	/**
	 * 设置查询条件
	 * 
	 * @param giftBagIdCondition 查询条件
	 */
	public void setGiftBagIdCondition(Condition<String> giftBagIdCondition) {
		this.giftBagIdCondition = giftBagIdCondition;
	}

	/**
	 * 构造并返回查询条件
	 * 
	 * @return giftMemberIdCondition 查询条件
	 */
	public Condition<String> giftMemberId() {
		this.giftMemberIdCondition = new Condition<>();
		return this.giftMemberIdCondition;
	}
	
	/**
	 * 获取查询条件
	 * 
	 * @return giftMemberIdCondition 查询条件
	 */
	public Condition<String> getGiftMemberIdCondition() {
		return giftMemberIdCondition;
	}

	/**
	 * 设置查询条件
	 * 
	 * @param giftMemberIdCondition 查询条件
	 */
	public void setGiftMemberIdCondition(Condition<String> giftMemberIdCondition) {
		this.giftMemberIdCondition = giftMemberIdCondition;
	}

	/**
	 * 构造并返回查询条件
	 * 
	 * @return orderNoCondition 查询条件
	 */
	public Condition<String> orderNo() {
		this.orderNoCondition = new Condition<>();
		return this.orderNoCondition;
	}
	
	/**
	 * 获取查询条件
	 * 
	 * @return orderNoCondition 查询条件
	 */
	public Condition<String> getOrderNoCondition() {
		return orderNoCondition;
	}

	/**
	 * 设置查询条件
	 * 
	 * @param orderNoCondition 查询条件
	 */
	public void setOrderNoCondition(Condition<String> orderNoCondition) {
		this.orderNoCondition = orderNoCondition;
	}

	/**
	 * 构造并返回查询条件
	 * 
	 * @return couponIdCondition 查询条件
	 */
	public Condition<String> couponId() {
		this.couponIdCondition = new Condition<>();
		return this.couponIdCondition;
	}
	
	/**
	 * 获取查询条件
	 * 
	 * @return couponIdCondition 查询条件
	 */
	public Condition<String> getCouponIdCondition() {
		return couponIdCondition;
	}

	/**
	 * 设置查询条件
	 * 
	 * @param couponIdCondition 查询条件
	 */
	public void setCouponIdCondition(Condition<String> couponIdCondition) {
		this.couponIdCondition = couponIdCondition;
	}

	/**
	 * 构造并返回[枚举]商品类型：0-优质好货-SKU、1-停车券-PARKCOUPON、2-现金券-CASHCOUPON查询条件
	 * 
	 * @return skuTypeCondition [枚举]商品类型：0-优质好货-SKU、1-停车券-PARKCOUPON、2-现金券-CASHCOUPON查询条件
	 */
	public Condition<GiftBagMemberProRefSkuType> skuType() {
		this.skuTypeCondition = new Condition<>();
		return this.skuTypeCondition;
	}
	
	/**
	 * 获取[枚举]商品类型：0-优质好货-SKU、1-停车券-PARKCOUPON、2-现金券-CASHCOUPON查询条件
	 * 
	 * @return skuTypeCondition [枚举]商品类型：0-优质好货-SKU、1-停车券-PARKCOUPON、2-现金券-CASHCOUPON查询条件
	 */
	public Condition<GiftBagMemberProRefSkuType> getSkuTypeCondition() {
		return skuTypeCondition;
	}

	/**
	 * 设置[枚举]商品类型：0-优质好货-SKU、1-停车券-PARKCOUPON、2-现金券-CASHCOUPON查询条件
	 * 
	 * @param skuTypeCondition [枚举]商品类型：0-优质好货-SKU、1-停车券-PARKCOUPON、2-现金券-CASHCOUPON查询条件
	 */
	public void setSkuTypeCondition(Condition<GiftBagMemberProRefSkuType> skuTypeCondition) {
		this.skuTypeCondition = skuTypeCondition;
	}

}
